/*
*   redmicro all Copyright (c)
 *
 * Created by seeker910 on 2018/06/5.
* */
Rsd.define('Rsd.Faith.pages.BankYinHangZhangHuListPage', {
    extend: 'Rsd.Faith.pages.ListPage',
    requires: ['Rsd.controlEx.ComboBoxEnum'],
    xtype: 'list-bank-zhanghu',
    "modelType": "BankZhangHuModel",
    keyMember: 'id',
    titleMember: 'KaiHuXingMingCheng',
    "formFields": [
        {
            "name": "YinHangMingCheng",
            "label": {
                "width": 80,
                "content": "开户行名称"
            },
            "dataIndex": "YinHangMingCheng",
            "index": 1,
            "exist": true,
            "xtype": "text",
            "length": 100
        },
        {
            "name": "KaiHuMingCheng",
            "label": {
                "width": 80,
                "content": "账户名称"
            },
            "dataIndex": "KaiHuMingCheng",
            "index": 4,
            "exist": true,
            "xtype": "text",
            "length": 100
        },
        {
            "name": "KaiHuZhangHao",
            "label": {
                "width": 80,
                "content": "开户账号"
            },
            "dataIndex": "KaiHuZhangHao",
            "index": 3,
            "exist": true,
            "xtype": "text",
            "length": 100
        },


        {
            "name": "YinHangDiZhi",
            "label": {
                "width": 80,
                "content": "开户行地址"
            },
            "dataIndex": "YinHangDiZhi",
            "index": 2,
            "exist": true,
            "xtype": "text",
            "length": 100
        },

        {
            "name": "YinHangDianHua",
            "label": {
                "width": 80,
                "content": "开户行电话"
            },
            "dataIndex": "YinHangDianHua",
            "index": 5,
            "exist": true,
            "xtype": "text",
            "length": 100
        },

        {
            "name": "Remark",
            "label": {
                "width": 80,
                "content": "备注"
            },
            "dataIndex": "Remark",
            "index": 200,
            "exist": true,
            "xtype": "text",
            "length": 100
        }
    ],
    "gridColumns":[
        {
            "text": "序号",
            "xtype": "index",
            "width": 40,
            "index": 0
        },
        {
            "name": "YinHangMingCheng",
            "dataIndex": "YinHangMingCheng",
            "sortable": false,
            "text": "开户行名称",
            "index": 1,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true
        },

        {
            "name": "KaiHuZhangHao",
            "dataIndex": "KaiHuZhangHao",
            "sortable": false,
            "text": "开户账号",
            "index": 3,
            "exist": true,
            "xtype": "string",
            "width": 250,
            "nobr": true
        },
        {
            "name": "KaiHuMingCheng",
            "dataIndex": "KaiHuMingCheng",
            "sortable": false,
            "text": "开户名称",
            "index": 4,
            "exist": true,
            "xtype": "string",
            "width": 100,
            "nobr": true
        },
        {
            "name": "YinHangDiZhi",
            "dataIndex": "YinHangDiZhi",
            "sortable": false,
            "text": "开户行地址",
            "index": 2,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true
        },
        {
            "name": "YinHangDianHua",
            "dataIndex": "YinHangDianHua",
            "sortable": false,
            "text": "开户行电话",
            "index": 5,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true
        },

        {
            "name": "Remark",
            "dataIndex": "Remark",
            "sortable": false,
            "text": "备注",
            "index": 200,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true
        }
    ],
    readOnly:false,
    newButtons:[{text:'添加银行账户',handler:'btn_new'}],
    /*
    * */
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
    },
    btn_new:function btn_new() {
        this.openItem();
    }
});